﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using NHibernate;
using DotNet.Common.NHibernateUtil;
using ZLCMS.Data.Model;

namespace ZLCMS.Web.Wap.Shop
{
    public partial class NavCategory : System.Web.UI.UserControl
    {
        protected string NavId { get; set; }
        protected void Page_Load(object sender, EventArgs e)
        {
            NavId = string.IsNullOrEmpty(Request["nav"])?"D":Request["nav"];
            using (ISession session = SessionFactoryHelper.CreateSession())
            {
                rpt_nav.DataSource = session.CreateQuery("from ShopNavCategory where ParentId=1 and Status = '1' and Kind='NAV' order by ShowOrder asc ").List<ShopNavCategory>();
                rpt_nav.DataBind();
            }
        }
    }
}